package entity

type RegisterForm struct {
	Name     string `form:"name" json:"name" binding:"required,min=2,max=20"`
	Mobile   string `form:"mobile" json:"mobile" binding:"required,mobile"` //手机号码格式有规范可寻， 自定义validator
	PassWord string `form:"password" json:"password" binding:"required,min=3,max=20"`
	Email    string `form:"email" json:"email" binding:"required,min=3,max=20"`
	Sex      int    `form:"sex" json:"sex"`
}

type UserListForm struct {
	Page  int `form:"page" json:"page" binding:"required,min=1,max=20"`
	Limit int `form:"limit" json:"limit" binding:"required"`
}

type LoginForm struct {
	Name     string `form:"name" json:"name" binding:"required,min=2,max=20"`
	PassWord string `form:"password" json:"password"`
}
